package com.zwp.base.entity

import com.zwp.base.exception.ResultException


/**
 * 网络请求结果
 */
sealed class ResultState<out T : Any> {

    data class Success<out T : Any>(val data: T?) : ResultState<T>()

    data class Error(val exception: ResultException) : ResultState<Nothing>()
}
